package dao;

import java.util.List;

import vo.Employee;
import vo.Payment;
import vo.Saleorder;
import vo.Saleorderitem;
import vo.Showitem;

public interface ISaleDao {
	public Employee getEmployee(String name,String password);
	public void addSaleorder(Saleorder saleorder);
	//=======================================2.更新订单===============================================
	public void updateSaleorder(Saleorder saleorder) ;
	
	//===============获得明细表所有记录====================
	public List<Saleorderitem> getAllItem();
	//===============插入到saleorderitem表里====================
	public void addSaleorderitem(Saleorderitem saleorderitem);
	//===============获得临时表的总金额===================
	public float getTotalPrice();
	//===============7.添加结算记录===================
	public void addPayment(Payment payment) ;
  //================8.通过saleorderid获得所有订单明细===
	public List<Saleorderitem> getAllItemById(String saleorderid);	
	//================9.通过hql语句操作数据库表saleorderitem==
	  public void sale_updateByHql(String hql);
	//================10.通过获得订单明细表记录==
	  public Saleorderitem getSaleorderitemById(String saleorderitemid);

	//================11.通过hql获得订单表记录=======
	  public Saleorder getSaleorderByHql(String hql);

}
